package cn.edu.zzu.nlp.utopiar.util;

import java.util.List;

import cn.edu.zzu.nlp.readTree.TreeParser;
import cn.edu.zzu.nlp.utopiar.editor.EditorTabbedPane;
import cn.edu.zzu.nlp.utopiar.editor.EditorToolBar;

public class SetLabel {

	public static String setLabel(){
		String label = "";
		if(EditorToolBar.FLAG==2){
			List<String> splitList = TreeParser.getSplitList();
			
			for (String string : splitList) {
				label += string;
			}
			return label;
		}
		List<String> temp = TreeParser.getLeaf();		
		for (String string : temp) {
			label += string;
			if(EditorToolBar.FLAG==1||EditorTabbedPane.getPATH().equals(EditorTabbedPane.ENGLISH_PATH)){
				label +="  ";
			}
		}
		return label;
	}
}
